package com.wyz.saas.common.impl

import android.view.View
import androidx.fragment.app.Fragment
import com.wyz.saas.api.app.ApiButton

abstract class AbstractIconButton : AbstractButton(), ApiButton {

    override fun getToolTip(): String {
        return ""
    }

    override fun onViewShow(fragment: Fragment?, view: View) {
    }

    override fun onViewClick(fragment: Fragment?, view: View) {
    }

    override fun onViewLongClick(fragment: Fragment?, view: View): Boolean {
        return false
    }

    override fun onViewHide(fragment: Fragment?, view: View) {
    }

    override fun isAuthorized(): Boolean {
        return true
    }

    override fun isMapButton(): Boolean {
        return true
    }

    override fun isMenuButton(): Boolean {
        return true
    }
}